package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap47 extends OSMap
	{
		public function OSMap47()
		{
			super();

			var ground:OSGround = new OSGround(0, 840, 100, 240, 0, false);
			var entity:OSEntity = new OSEntity(NOTHING);
			
			
			ground.setNoErosionDown([55, 56, 57, 58, 59]);
			ground.setNoErosionLeft([0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55]);
			ground.setNoErosionRight([9]);
			ground.erode();
			add(ground);

			add(new OSBridge(100, 860, 9, 5, false));

			ground = new OSGround(260, 500, 440, 20, 0, false);
			ground.setNoErosionDown([0, 21]);
			ground.erode();
			add(ground);

			ground = new OSGround(260, 520, 20, 240, 0, false);
			ground.setNoErosionUp([0]);
			ground.erode();
			add(ground);
			
			entity = new OSEntity(OSEntity.NOTHING, 260, 520);
			entity.makeGraphic(20, 500, 0xff221100);
			addBackground(entity);

			ground = new OSGround(260, 940, 20, 140, 0, false);
			ground.setNoErosionDown([6]);
			ground.erode();
			add(ground);

			add(new OSBird(320, 460));

			add(new OSBird(380, 460));

			ground = new OSGround(460, 760, 20, 320, 0, false);
			ground.setNoErosionDown([15]);
			ground.setNoErosionLeft([5]);
			ground.setNoErosionRight([1]);
			ground.erode();
			add(ground);

			add(new OSBridge(480, 780, 9, 5, false));

			add(new OSBird(600, 460));

			ground = new OSGround(680, 520, 20, 140, 0, false);
			ground.setNoErosionUp([0]);
			ground.erode();
			add(ground);
			
			entity = new OSEntity(OSEntity.NOTHING, 680, 520);
			entity.makeGraphic(20, 500, 0xff221100);
			addBackground(entity);

			ground = new OSGround(680, 880, 20, 200, 0, false);
			ground.setNoErosionDown([9]);
			ground.erode();
			add(ground);

			ground = new OSGround(840, 760, 120, 320, 0, false);
			ground.setNoErosionDown([90, 91, 92, 93, 94, 95]);
			ground.setNoErosionLeft([6]);
			ground.setNoErosionRight([5, 11, 17, 23, 29, 35, 41, 47, 53, 59, 65, 71, 77, 83, 89, 95]);
			ground.erode();
			add(ground);

		}
	}
}
